(function(window,undefined){
    var jQuery=function(selector){
return new jQuery.fn.init(selector)
}
    



jQuery.fn=jQuery.prototype={
html:function(){
    console.log("这是jq的html方法")
},
css:function(){
    console.log('"这是jq的css方法"')
}
}
jQuery.fn.init=function(selector){
    let elements=document.querySelectorAll(selector)
for(i=0;i<elements.length;i++){
    this[i]=elements[i]
    this.length=elements.length
}
}
jQuery.fn.init.prototype=jQuery.fn
window.jQuery=window.$=jQuery
})(window)